<?php
require 'conn.php';
require 'config.php';
require 'inc/function.php';

$str='';
$meter=$_GET['meter'];
switch($meter){
case 'security':
	$code=ReStr($_GET['code']);
	$query=mysql_query("select * from {$language}_security where s_code='$code'");
	if (mysql_num_rows($query)==0){
		$str='<p id="security_nodata">The security code does not exist</p>';
	}
	else {
		$row=mysql_fetch_array($query);
		$str.='<div id="security_products">';
		$str.='<dl>';
		$str.='<dt><img src="'.$row['s_image'].'" /></dt>';
		$str.='<dd><strong>Product Name:</strong> '.$row['s_name'].'<br /><strong>出口国:</strong> '.$row['s_m1'].'<br /><strong>进口国:</strong> '.$row['s_m2'].'</dd>';
		$str.='</dl>';
		$str.='</div>';
	}
	break;
}

echo $str;
?>